body {
  margin: 0;
  padding: 0;
  background: url(../i/bg.png);
  font: 1em/1.2 'Helvetica Neue', Helvetica, Arial, '나눔고딕', NanumGothic, sans-serif;
}

code {
  font-family: Consolas, "Liberation Mono", Courier, monospace;
}

figure {
  margin: 1em 40px;
}
figure img {
  max-width: 100%;
  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}
figcaption {
  color: #666;
}

#wrap {
}

[role=banner] {
  position: relative;
  width: 100%;
  height: 260px;
  margin: 0 auto;
  overflow: hidden;
}

[role=banner] h1 {
  box-sizing: border-box;
  width: 50.5%;
  margin: 0;
  padding: 40px 0 10px;
  text-align: right;
  color: rgba(0,0,0,.8);
  font-size: 3em;
}
[role=banner] h1 .version {
  color: rgba(0,0,0,.5);
  font-size: .7em;
}
[role=banner] p {
  width: 35%;
  margin: 0 0 0 15%;
  padding: 0 0 40px;
  text-align: right;
  font-size: 1.2em;
  line-height: 1.5;
}
[role=banner] .img {
  position: absolute;
  top: 20px;
  left: 53%;
  width: 260px;
  height: 217px;
}
[role=banner] .img img {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;

  transform: skew(-2deg);
  -ms-transform: skew(-2deg); /* IE 9 */
  -webkit-transform: skew(-2deg); /* Safari and Chrome */
  -o-transform: skew(-2deg); /* Opera */
  -moz-transform: skew(-2deg); /* Firefox */
}
[role=banner] .img::before {
  content: '';
  position: absolute;
  left: 270px;
  bottom: 0;
  width: 95%;
  height: 40%;
  max-width: 500px;
  max-height: 80px;
  -webkit-box-shadow: -260px 0 8px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: -260px 0 8px rgba(0, 0, 0, 0.4);
  box-shadow: -260px 0 8px rgba(0, 0, 0, 0.4);
  -webkit-transform: skew(-60deg);
  -moz-transform: skew(-60deg);
  -ms-transform: skew(-60deg);
  -o-transform: skew(-60deg);
  transform: skew(-60deg);
  -webkit-transform-origin: 0 100%;
  -moz-transform-origin: 0 100%;
  -ms-transform-origin: 0 100%;
  -o-transform-origin: 0 100%;
  transform-origin: 0 100%;
}

[role=navigation] {
  -webkit-transition: opacity 200ms linear;
  transition: opacity 200ms linear;

  position: absolute;
  width: 100%;
  height: 44px;
  background: #333;
  font-size: 20px;
  overflow: hidden;
}
[role=navigation] ul {
  width: 70%;
  margin: 0 auto;
  padding: 0;
}
[role=navigation] li {
  width: 23%;
  padding: 10px 0;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
}
[role=navigation] li.fb {
  width: 25%;
  text-align: right;
}
[role=navigation] li a {
  color: #fff;
  text-decoration: none;
}
[role=navigation] li a:hover {
  text-decoration: underline;
}

[role=search] {
  margin: 44px 0 0;
  background: #ddf;
}
[role=search] fieldset {
  width: 70%;
  margin: 0 auto;
  padding: 3px;
  border: 0;
  text-align: right;
}
[role=search] fieldset legend {
  display: none;
}
[role=search] fieldset input {
  max-width: 250px;
  width: 70%;
  vertical-align: middle;
  font-size: 30px;
}
[role=search] fieldset button {
  background: #66d;
  vertical-align: middle;
  color: #fff;
}

#body {
  width: 70%;
  margin: 0 auto;
  padding: 1px 15% 40px;
  background: #fff;
  line-height: 1.6;
  font-size: .8em;
}
#body h1 {
  margin: 0;
  padding: 1em 0 3px;
  font-size: 3em;
}
#body h2 {
  margin: .5em 0 0;
  padding: 3px 0;
  border-bottom: solid 1px #bbb;
  font-size: 1.5em;
}
#body p {
  margin: .3em 0;
  padding: 3px 0;
}
#body code {
  display: inline-block;
  background: #f4f4f4;
  padding: 0 3px;
  border: solid 1px #ccc;
  border-radius: 3px;
  font-size: .9em;
}

#search_result h1 {
  font-size: 30px;
}
#search_result_score {
  font-size: 40px;
  text-shadow: 2px 2px 3px rgba(0,0,0,.2);
}

#recent ul {
  margin: 0;
  padding: 0;
}
#recent li {
  margin: 0 0 .5em 2em;
  font-size: 12px;
}
#recent .addr {
  color: #999;
}

[role=contentinfo] {
  opacity: .8;
  filter: "alpha(opacity=80)";
  width: 70%;
  margin: 0 auto;
  text-align: center;
  font-size: .8em;
}

#tothetop {
  opacity: 0;
  filter: "alpha(opacity=0)";
  position: fixed;
  bottom: 50px;
  right: 0;
}

.fix_nav [role=navigation] {
  position: fixed;
  top: 0;
  opacity: .6;
  filter: "alpha(opacity=60)";
}
.fix_nav [role=navigation]:hover {
  opacity: 1;
  filter: "alpha(opacity=100)";
}
.fix_nav #tothetop {
  -webkit-transition: opacity 200ms linear;
  transition: opacity 200ms linear;
  opacity: 1;
  filter: "alpha(opacity=100)";
}

@media screen and (max-width: 750px) {
  [role=banner] {
    font-size: .8em;
  }
  [role=banner] h1 {
    font-size: 2.5em;
  }
  [role=banner] .img {
    top: 40px;
    width: 182px;
    height: 152px;
  }
  [role=navigation] ul {
    width: 90%;
  }
  [role=navigation] {
    font-size: 15px;
  }

  #body {
    width: 90%;
    padding: 1px 5%;
  }
  #body h1 {
    font-size: 2em;
  }
}

@media screen and (max-width: 480px) {
  [role=banner] {
    height: auto;
  }
  [role=banner] h1 {
    width: 80%;
    padding: 5% 5% 0;
    text-align: left;
  }
  [role=banner] p {
    width: 80%;
    margin: 0;
    padding: 3% 5% 5%;
    text-align: left;
  }
  [role=banner] .img {
    position: static;
    width: 80%;
    height: auto;
    margin: 0 auto;
    padding-bottom: 5%;
  }
  [role=banner] .img::before {
    display: none;
  }
  [role=banner] .img img {
    transform: none;
    -ms-transform: none; /* IE 9 */
    -webkit-transform: none; /* Safari and Chrome */
    -o-transform: none; /* Opera */
    -moz-transform: none; /* Firefox */
  }
  [role=navigation] {
    font-size: 13px;
  }

  #github_fork {
    display: none;
  }
}

@media screen and (min-width: 1200px) {
  #wrap {
    max-width: 850px;
  }

  [role=navigation] {
    max-width: 850px;
  }
  [role=navigation] .comments {
    visibility: hidden;
  }

  .fix_nav #tothetop {
    left: 780px;
  }

  #comments {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 850px;
    box-shadow: 0 0 5px rgba(0,0,0,.2);
    background: #fff;
    overflow-y: auto;
  }
  #comments h1 {
    display: none;
  }

  #affogato {
    padding: 0 10px;
  }

  #skp_comment_form,
  #skp_indicator {
    display: none !important;
  }
}
